import request from "@/framework/utils/request";

// 购物车列表
export function cartList(data) {
  return request({
    url: "/admin/ShopCartController/cartList",
    method: "post",
    data,
  });
}

// 购物车添加
export function cartAdd(data) {
  return request({
    url: "/admin/ShopCartController/cartAdd",
    method: "post",
    data,
  });
}

// 购物车删除
export function cartDelete(data) {
  return request({
    url: "/admin/ShopCartController/cartDelete",
    method: "post",
    data,
  });
}

// 购物车商品数量修改
export function cartNum(data) {
  return request({
    url: "/admin/ShopCartController/cartNum",
    method: "post",
    data,
  });
}
